﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Opennav.MapGenerator.Map.Labels;
using System.IO;
using Opennav.MapGenerator.Locator;

namespace Opennav.MapGenerator.Map.Locations
{
    public class Country
    {
        public Country(byte id, GeoArea area, Label label)
        {
            this.Area = area;
            this.Id = id;
            this.Label = label;
        }

        public byte Id { get; private set; }

        public GeoArea Area { get; private set; }

        public Label Label { get; set; }

        public void Write(Stream stream)
        {
            BinaryWriter writer = new BinaryWriter(stream);
            writer.Write((uint)(Label.Offset & 0x7fffffff));
        }
    }
}
